package com.xiaolin.sports.dao;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.xiaolin.sports.model.CourseInfo;
import com.xiaolin.sports.page.Page;
import com.xiaolin.sports.view.CourseListView;

public interface CourseInfoMapper {

    int insertSelective(CourseInfo record);

    CourseInfo selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(CourseInfo record);

    CourseListView selectDetailById(Integer id);
    
    List<CourseInfo> selectListByPage(Page<CourseInfo> page);
    
    List<CourseListView> selectListForWapByPage(Page<CourseListView> page);
    
    List<CourseListView> selectListForCollection(@Param("openid") String openid, @Param("parentId")Integer parentId);
    
    CourseListView selectForWapByParams(@Param("openid") String openid, @Param("courseId")Integer courseId);
}